<!-- $Id: postman_list.htm 14216 2015-02-07 02:27:21Z derel $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<div class="form-div">
  <form action="javascript:searchUser()" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    &nbsp;{$lang.label_mobile} <input type="text" name="mobile" size="20" value="{$filter.mobile}" />
	&nbsp;{$lang.label_postman}<input type="text" name="postman_name" size="20" value="{$filter.postman_name}" />
	&nbsp;{$lang.label_region}<select name="region_id" size=1>
	<option value="0">请选择</option>
	{foreach from=$district_list item=district}
	<option value="{$district.region_id}" {if $filter.region_id eq $district.region_id}selected{/if} >{$district.region_name}</option>
	{/foreach}
	</select>
    &nbsp; <input type="submit" value="{$lang.button_search}" class="button"/>
  </form>
</div>


<form method="POST" action="" name="listForm">
<!-- start postman list -->
<div class="list-div" id="listDiv">
{/if}

  <table cellpadding="3" cellspacing="1">
    <tr>
	<th>
      <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">
      <a href="javascript:listTable.sort('user_id'); ">{$lang.postman_id}</a>{$sort_user_id}
    </th>
      <th>{$lang.region_name}</th>          
      <th>{$lang.postman_name}</th>
	  <th>{$lang.mobile}</th>
      <th>{$lang.handler}</th>
    </tr>
    {foreach from=$postman_list item=postman}
    <tr>
	<td><input type="checkbox" name="checkboxes[]" value="{$postman.postman_id}" />{$postman.postman_id}</td>
	<td align="center"><span>{$postman.region_name}</span></td>
      <td  align="center">{$postman.postman_name|escape:html}</td>
      <td align="center">{$postman.mobile}</td>
      <td align="center">
        <a href="postman.php?act=edit&amp;postman_id={$postman.postman_id}">{$lang.edit}</a> |
        <a href="javascript:" onclick="listTable.remove({$postman.postman_id}, '{$lang.drop_confirm}')">{$lang.remove}</a></td>
    </tr>
      {foreachelse}
    <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
      {/foreach}

  </table>
  <table id="page-table" cellspacing="0">
  <tr>
    <td>
      <input name="remove" type="submit" id="btnSubmit" value="{$lang.drop}" class="button" disabled="true" />
      <input name="act" type="hidden" value="remove" />
    </td>
    <td align="right" nowrap="true">
    {include file="page.htm"}
    </td>
  </tr>
</table>

{if $full_page}
</div>
<!-- end postman list -->
</form>


<script type="text/javascript" language="JavaScript">
<!--
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}

  {literal}
  onload = function()
  {
     // 开始检查订单
     startCheckOrder();
  }

  function searchUser()
{
    listTable.filter['postman_name'] = Utils.trim(document.forms['searchForm'].elements['postman_name'].value);
    listTable.filter['region_id'] = document.forms['searchForm'].elements['region_id'].value;
    listTable.filter['mobile'] = Utils.trim(document.forms['searchForm'].elements['mobile'].value);
    listTable.filter['page'] = 1;
    listTable.loadList();
}

  {/literal}
//-->
</script>
{include file="pagefooter.htm"}
{/if}